import request from "@/utils/request";

export const saveSuggestion = suggestion => request.post('/suggestion/add', suggestion)

export const getSuggestionByPageAndPhone = (phone, current, limit, status) => request.get(`/suggestion/getByPhone?phone=${phone}&pageNum=${current}&pageSize=${limit}&status=${status}`)

export const deleteSuggestion = id => request.get('/suggestion/deleteByUuid?uuid=' + id)

export const updateSuggestion = suggestion => request.post('/suggestion/update', suggestion)